﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.ComponentModel;

namespace BlogPlat.Model
{
    [MetadataType(typeof(TagMetadata))]
    public partial class Tag
    {
    }

    public class TagMetadata
    {
        [HiddenInput(DisplayValue = false)]
        public int TagID { get; set; }

        [Required(ErrorMessage = "Please enter tag name")]
        [StringLength(100)]
        [DisplayName("Tag Name")]
        public string TagName { get; set; }

        [Required(ErrorMessage = "Please enter tag friendly url")]
        [StringLength(200)]
        [DisplayName("Tag Friendly Url")]
        public string FriendlyUrl { get; set; }
    }
}
